import request from '@/utils/request'

/**
 * 根据年份查询商机报表
 * 入参名称：
 */
export function getDemandReport(query) {
  return request({
    url: '/api/admin/demand/getDemandReport',
    method: 'post',
    data: query
  })
}

export function exportDemandReport(query) {
  return request({
    url: '/api/admin/excel/exportDemandReport',
    method: 'post',
    responseType: 'blob',
    data: query
  })
}
